home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mntlib43
/
mntlib
/
abs.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-15
|
205b
|
18 lines
/* return absolute values */
#include <stdlib.h>
#ifdef abs
#undef abs
#endif
#ifdef labs
#undef labs
#endif
int abs(x)
int x;
{ return x < 0 ? -x : x; }
long labs(x)
long x;
{ return x < 0 ? -x : x; }